@use '../mixins/config' as *;
@use '../mixins/utils.scss' as *;

// text-align
// generate .yq-text-align-${align}, .yq-text-align-${align}-i
$aligns: left, center, right, justify, start, end;
@each $align in $aligns {
    .#{$namespace}-text-align-#{$align} {
        text-align: $align;
        &-i {
            text-align: $align !important;
        }
    }
}

// ellipsis
// generate .yq-text-ellipsis
.#{$namespace}-text-ellipsis {
    @include utils-ellipsis;
}
// generate .yq-text-ellipsis-l${line}, line range: 1 - 5
@for $i from 1 through 5 {
    .#{$namespace}-text-ellipsis-l#{$i} {
        @include utils-ellipsis-line($i);
    }
}
